-
Notifications
You must be signed in to change notification settings - Fork 146
fix(pb): have restart policy actors sleep after pending for too long #3837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Review: Fix restart policy actors sleeping after pending timeoutSummaryThis PR addresses RVT-5330 by ensuring that Rivet Actors with Code Quality ✅Strengths:
Minor observations:
Functionality ✅The logic is sound:
Potential Issues 🔍1. Comment removal justification ( The removed comment stated: // NOTE: Its not possible for `SpawnActorOutput::Sleep` to be returned here, the crash
// policy is `Restart`.This comment is now obsolete since runtime::SpawnActorOutput::Sleep => {
tracing::debug!(
actor_id=?input.actor_id,
?RESTART_PENDING_TIMEOUT_MS,
"restart policy actor sleeping after pending timeout"
);
}2. Missing state management When Suggested fix: runtime::SpawnActorOutput::Sleep => {
state.sleeping = true;
ctx.activity(runtime::SetSleepingInput {
actor_id: input.actor_id,
})
.await?;
}3. No failure reason update When an actor times out pending and goes to sleep, it might be valuable to set or preserve a Performance Considerations ✅
Security Concerns ✅No security issues identified. Test Coverage
|
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/virtual-websocket
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
b613527 to
b4daf93
Compare
363b7a5 to
3f06e1b
Compare
b4daf93 to
0b9ca2f
Compare
3f06e1b to
8cd75d7
Compare
0b9ca2f to
1a08758
Compare
8cd75d7 to
75ce8e5
Compare
1a08758 to
5b1c724
Compare
5b1c724 to
8152462
Compare
50ba096 to
b9a9c50
Compare
8152462 to
82ed36d
Compare
82ed36d to
f5a4f68
Compare
b9a9c50 to
9a4ab5a
Compare
f5a4f68 to
9e4ae6f
Compare
9a4ab5a to
33e8961
Compare
33e8961 to
633544a
Compare
9e4ae6f to
595d7b8
Compare
633544a to
e073155
Compare
250667d to
980dd0a
Compare
e073155 to
e96badf
Compare
980dd0a to
97ace26
Compare
e96badf to
448ef1f
Compare
Merge activity
|

Fixes RVT-5330